package pri.jz.keeper.db.convert

import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import java.util.Date

/**
 *Author by: JZ
 *Email: 2451756617@qq.com
 *PS:
 */
class DataConvert {

    @TypeConverter
    fun revertDate(value: Long): Date {
        return Date(value)
    }
    @TypeConverter
    fun convertDate(date: Date): Long {
        return date.time
    }
}